﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace House.DTO
{
    public class RoleEditDTO
    {
        /// <summary>
        /// 角色id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 角色名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 角色权限列表
        /// </summary>
        public List<RolePermissionEdit> PermissionList { get; set; }
    }

    public class RolePermissionEdit
    {
        public long Id { get; set; }

        public string Description { get; set; }

        public string Name { get; set; }

        /// <summary>
        /// 表示该权限是当前角色所拥有的
        /// </summary>
        public bool IsUsed { get; set; }
    }
}
